﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI;

namespace blackhouse.Web.Composite {
	public class CompositeControl<C> : CompositeAction<C> where C : Control {

		public CompositeControl(params C[] controls) : base(controls) { }

		#region Methods

		public void SetVisible(bool visible) {
			this.ExecuteOfAllControls(c => c.Visible = visible);
		}

		#endregion

	}
}